package com.rockcent.service.impl;

import com.rockcent.mall.lib.dto.PromotionCodeDto;
import com.rockcent.mall.lib.repository.PromotionCodeRepository;
import com.rockcent.service.PromotionCodeService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Marco on 2017/8/4.
 */
@Service
public class PromotionCodeServiceImpl implements PromotionCodeService {

    private Logger log = LoggerFactory.getLogger(PromotionCodeServiceImpl.class);

    @Autowired
    private PromotionCodeRepository promotionCodeRepository;

    @Override
    public PromotionCodeDto visitPageStatistics(PromotionCodeDto promotionCodeDto) {
        return promotionCodeRepository.visitPageStatistics(promotionCodeDto);
    }

    @Override
    public PromotionCodeDto promotionCodeStatistics(PromotionCodeDto promotionCodeDto) {
        return promotionCodeRepository.promotionCodeStatistics(promotionCodeDto);
    }
}
